<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" %>
<html>
<head>
<title>User Login</title>
<link rel="stylesheet" href="<c:url value="/resources/css/backend.css" />" type="text/css">
</head>
<body>

<div class="wrapper">

<form id="signInForm" method="POST" action="<c:url value="/j_spring_security_check" />">
  
  <fieldset>
    
    <legend>admin login</legend>
    
    <c:if test="${not empty param.error}">
    <font color="red">
      Login error. <br />
      Reason : Wrong password ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
    </font>
    </c:if>
  
    <p>
      <label for="login">Username : </label>
      <input id="login"  type="text" name="j_username"/>
    </p>
    <p>
      <label for="password">Password &nbsp;: </label>
      <input id="password" type="password" name="j_password"/>
    </p>
    <p>
      <label for="rememberme">Remember me</label>
      <input id="rememberme" type="checkbox" name="_spring_security_remember_me" />
    </p>
    <p>
      <button type="submit">Sign In</button>
    </p>
  </fieldset>
  
</form>

</div>

</body>
</html>
